package com.jichangxiu.system.entity.dto.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jichangxiu.common.entity.dto.QueryEntity;
import com.jichangxiu.system.entity.bo.SysPostBo;
import com.jichangxiu.system.entity.po.SysPost;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * QuerySysPost:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统岗位表")
@AutoMappers({
        @AutoMapper(target = SysPost.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysPostBo.class, reverseConvertGenerate = false)
})
public class QuerySysPost extends QueryEntity {

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;

    /**
     * ID列表
     */
    @Schema(description = "ID列表")
    private List<String> idList;

    /**
     * 编码
     */
    @Schema(description = "编码")
    private String no;

    /**
     * 标识
     */
    @Schema(description = "标识")
    private String code;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 数据范围
     */
    @Schema(description = "数据范围")
    private String scope;

    /**
     * 顺序
     */
    @Schema(description = "顺序")
    private BigDecimal sort;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 是否启用
     */
    @Schema(description = "是否启用")
    private Boolean enabled;

    /**
     * 启用者
     */
    @Schema(description = "启用者")
    private String enabledBy;

    /**
     * 启用时间
     */
    @Schema(description = "启用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date enabledTime;

    /**
     * 是否扩展
     */
    @Schema(description = "是否扩展")
    private Boolean isExtend;

}